import 'package:flutter/material.dart';
import 'package:flutter_getx_cms/utils/size_extension.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';

import 'logic.dart';

class GetSplashPage extends StatelessWidget {
  GetSplashPage({Key? key}) : super(key: key);

  /// 使用Get.put()实例化你的类，使其对当下的所有子路由可用。
  final logic = Get.put(GetSplashLogic());

  @override
  Widget build(BuildContext context) {
    final themeData = TDTheme.of(context);

    return Scaffold(
      body: Container(
        width: 1.sw,
        height: 1.sh,
        color: themeData.brandColor6,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            10.heightSizedBox,
            TDText(
              'Customs Management System',
              font: TDTheme.of(context).fontHeadlineSmall,
              style: TextStyle(
                color: Colors.white
              ),
            ),
            80.heightSizedBox
          ],
        ),
      )
    );
  }


}
